package gui;

import org.junit.Test;

import java.io.File;
import java.io.FileOutputStream;

/**
 * The class/interface
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
public class MainUse {
    @Test
    public void test() throws Exception {
        File file = new File("d:/aa.txt");
        FileOutputStream fileOutputStream = new FileOutputStream(file);
        fileOutputStream.write((char)1);
        if (!file.exists()) {
            boolean newFile = file.createNewFile();
        }
    }
}
